class Star extends Scence{
	public constructor() {
		super()
	}
	protected  OnAdd(){
		this.init();
	}
	private init(){
		let jx1:egret.TextField=new egret.TextField();
        jx1.text="跳转到第一个界面";
        jx1.border=true;
        jx1.borderColor=0xff0000;
        jx1.width=400;
        jx1.height=50;
        jx1.size=50;
        jx1.x=120;
        jx1.y=200;
        this.addChild(jx1);
        jx1.touchEnabled=true;
        jx1.addEventListener(egret.TouchEvent.TOUCH_TAP,myfunction1,this)
        function myfunction1(){
        let s1:Scence1 = new Scence1();
        Guanli_Scence.get().changeScene(s1);
        }

        let jx2:egret.TextField=new egret.TextField();
        jx2.text="跳转到第二个界面";
        jx2.border=true;
        jx2.borderColor=0xff0000;
        jx2.width=400;
        jx2.height=50;
        jx2.size=50;
        jx2.x=120;
        jx2.y=400;
        this.addChild(jx2);
        jx2.touchEnabled=true;
        jx2.addEventListener(egret.TouchEvent.TOUCH_TAP,myfunction2,this)
        function myfunction2(){
        let s2:Scence2 = new Scence2();
         Guanli_Scence.get().changeScene(s2);
        }
        
        let jx3:egret.TextField=new egret.TextField();
        jx3.text="跳转到第三个界面";
        jx3.border=true;
        jx3.borderColor=0xff0000;
        jx3.width=400;
        jx3.height=50;
        jx3.size=50;
        jx3.x=120;
        jx3.y=600;
        this.addChild(jx3);
        jx3.touchEnabled=true;
        jx3.addEventListener(egret.TouchEvent.TOUCH_TAP,myfunction3,this)
        function myfunction3(){
        let s3:Scence3 = new Scence3();
         Guanli_Scence.get().changeScene(s3);
        }
	}
	protected OnRem(){
	
	}
}